<%@ Page Language="vb" ValidateRequest="false" Debug="true" %>
<%@ Register TagPrefix="editor" Assembly="WYSIWYGEditor" namespace="InnovaStudio" %>

<html>
<head>

	

	<script language="VB" runat="server">
		Sub Page_Load(Source As Object, E As EventArgs)
		
			If Not Page.IsPostBack Then
				NewsContent.Content = "<h3>Hello World!</h3>"
			End If
				
			'***************************************************
			'	SETTING EDITOR DIMENSION (WIDTH x HEIGHT)
			'***************************************************
			
    		NewsContent.EditorWidth="100%"
	        NewsContent.EditorHeight = 350
    		

			'***************************************************
			'	ADDING CUSTOM BUTTONS
			'***************************************************
		
			NewsContent.CustomButtons = New String(,){ _
					{"CustomName1","alert('Command 1 here.')","Caption 1 here","btnCustom1.gif"}, _
					{"CustomName2","alert(\""Command '2' here.\"")","Caption 2 here","btnCustom2.gif"}, _
					{"CustomName3","alert('Command \""3\"" here.')","Caption 3 here","btnCustom3.gif"}}

			'***************************************************
			'	RECONFIGURE TOOLBAR BUTTONS
			'***************************************************
		
			NewsContent.ButtonFeatures = New String() { _
				"Save","FullScreen","Preview","Print", _
				"Search","SpellCheck","|", _
				"Superscript","Subscript","|","LTR","RTL","|", _
				"Table","Guidelines","Absolute","|", _
				"Flash","Media","|","InternalLink","CustomObject","|", _
				"Form","Characters","ClearAll","XHTMLFullSource","XHTMLSource","BRK", _		
				"Cut","Copy","Paste","PasteWord","PasteText","|", _
				"Undo","Redo","|","Hyperlink","Bookmark","Image","|", _
				"JustifyLeft","JustifyCenter","JustifyRight","JustifyFull","|", _
				"Numbering","Bullets","|","Indent","Outdent","|", _
				"Line","RemoveFormat","BRK", _
				"StyleAndFormatting","TextFormatting","ListFormatting", _
				"BoxFormatting","ParagraphFormatting","CssText","Styles","|", _
				"CustomTag","Paragraph","FontName","FontSize","|", _
				"Bold","Italic","Underline","Strikethrough","|", _
				"ForeColor","BackColor","|", _
				"CustomName1","CustomName2","CustomName3"} ' => Custom Button Placement

			'***************************************************
			'	OTHER SETTINGS
			'***************************************************
			NewsContent.onSave="document.forms.Form1.elements.btnSubmit.click();"
			
			
			
			'NewsContent.StyleList = New String(,){ _
			'		{"BODY",false,"","font-family:Verdana,Arial,Helvetica;font-size:x-small;"}, _
			'		{".ScreenText",true,"Screen Text","font-family:Tahoma;"}, _
			'		{".ImportantWords",true,"Important Words","font-weight:bold;"}, _
			'		{".Highlight",true,"Highlight","font-family:Arial;color:red;"}}
					
			NewsContent.AssetManagerWidth = 640
			NewsContent.AssetManagerHeight = 465
			NewsContent.AssetManager = "/Editor/assetmanager/assetmanager.asp" 

			NewsContent.InternalLinkWidth = 365
			NewsContent.InternalLinkHeight = 270
			NewsContent.InternalLink = "links.htm"

			NewsContent.CustomObjectWidth = 365
			NewsContent.CustomObjectHeight = 270
			NewsContent.CustomObject = "objects.htm"

			NewsContent.CustomTagList = New String(,){ _
					{"First Name","{%first_name%}"}, _
					{"Last Name","{%last_name%}"}, _
					{"Email","{%email%}"}}

			NewsContent.CustomColors = New String() {"#ff4500","#ffa500","#808000","#4682b4","#1e90ff","#9400d3","#ff1493","#a9a9a9"}

			NewsContent.EditMode = "XHTMLBody"

		End Sub

		
	</script>
</head>
<body>


	
<form id="Form1" method="post" runat="server">
<div>
	<editor:wysiwygeditor 
		Runat="server"
		scriptPath="/scripts/editor/"
		ID="NewsContent"  Language="vietnamese" />
</div>
</form>

</body>
</html>